AnnieRoot.shootPeople= AnnieRoot.shootPeople||{};
AnnieRoot.shootPeople.ArrowManager=class extends annie.Sprite{
	constructor() {
		super();
		let s=this;
		/*_a2x_need_start*//*_a2x_need_end*/
		annie.initRes(s,"shootPeople","ArrowManager");
	}

	/**
	 * 获取箭头
	 * @param arrow
	 */
	static getArrow () {
		var s = this,
			arrow;
		if(s.arrowPool.length>0){
			arrow =  s.arrowPool.shift();
		}else{
			arrow = annie.getDisplay("shootPeople","Arrow");
		}
		return arrow;
	};
	/**
	 * 箭头回收
	 * @param callBack
	 */
	static recoveryBullet(arrow) {
		var s = this;
		if (!arrow) {
			throw new Error('bullet参数不能为空');
		}
		arrow.gotoAndStop(1);
		s.arrowPool.push(arrow);
	};

};
AnnieRoot.shootPeople.ArrowManager.arrowPool = [];//箭头池